<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::people::HOG类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1people_1_1_h_o_g.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="classpcl_1_1people_1_1_h_o_g-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::people::HOG类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><b><a class="el" href="classpcl_1_1people_1_1_h_o_g.html" title="HOG represents a class for computing the HOG descriptor described in Dalal, N. and Triggs,...">HOG</a></b> represents a class for computing the <a class="el" href="classpcl_1_1people_1_1_h_o_g.html" title="HOG represents a class for computing the HOG descriptor described in Dalal, N. and Triggs,...">HOG</a> descriptor described in Dalal, N. and Triggs, B., "Histograms of oriented gradients for human detection", CVPR 2005.  
 <a href="classpcl_1_1people_1_1_h_o_g.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="hog_8h_source.html">hog.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:afa9465c8bf99748ca57814d970c9b7f4"><td class="memItemLeft" align="right" valign="top"><a id="afa9465c8bf99748ca57814d970c9b7f4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#afa9465c8bf99748ca57814d970c9b7f4">HOG</a> ()</td></tr>
<tr class="memdesc:afa9465c8bf99748ca57814d970c9b7f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:afa9465c8bf99748ca57814d970c9b7f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65780ca664c72f0ef9147e511f8e1a8f"><td class="memItemLeft" align="right" valign="top"><a id="a65780ca664c72f0ef9147e511f8e1a8f"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#a65780ca664c72f0ef9147e511f8e1a8f">~HOG</a> ()</td></tr>
<tr class="memdesc:a65780ca664c72f0ef9147e511f8e1a8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a65780ca664c72f0ef9147e511f8e1a8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25cc756be0f72a274d5c79aa8a40841f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#a25cc756be0f72a274d5c79aa8a40841f">gradMag</a> (float *I, int h, int w, int d, float *M, float *O) const</td></tr>
<tr class="memdesc:a25cc756be0f72a274d5c79aa8a40841f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute gradient magnitude and orientation at each location (uses sse).  <a href="classpcl_1_1people_1_1_h_o_g.html#a25cc756be0f72a274d5c79aa8a40841f">更多...</a><br /></td></tr>
<tr class="separator:a25cc756be0f72a274d5c79aa8a40841f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab8c16acabf7b17ff3606fb2dce0df7f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#aab8c16acabf7b17ff3606fb2dce0df7f">gradHist</a> (float *M, float *O, int h, int w, int bin_size, int n_orients, bool soft_bin, float *H) const</td></tr>
<tr class="memdesc:aab8c16acabf7b17ff3606fb2dce0df7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute n_orients gradient histograms per bin_size x bin_size block of pixels. <br  />
  <a href="classpcl_1_1people_1_1_h_o_g.html#aab8c16acabf7b17ff3606fb2dce0df7f">更多...</a><br /></td></tr>
<tr class="separator:aab8c16acabf7b17ff3606fb2dce0df7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a731373544464f630fdd84c0f22902334"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#a731373544464f630fdd84c0f22902334">normalization</a> (float *H, int h, int w, int bin_size, int n_orients, float clip, float *G) const</td></tr>
<tr class="memdesc:a731373544464f630fdd84c0f22902334"><td class="mdescLeft">&#160;</td><td class="mdescRight">Normalize histogram of gradients.  <a href="classpcl_1_1people_1_1_h_o_g.html#a731373544464f630fdd84c0f22902334">更多...</a><br /></td></tr>
<tr class="separator:a731373544464f630fdd84c0f22902334"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0f6d73c46634a078fd0ac1d196dac5e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#ae0f6d73c46634a078fd0ac1d196dac5e">compute</a> (float *I, int h, int w, int n_channels, int bin_size, int n_orients, bool soft_bin, float *descriptor)</td></tr>
<tr class="memdesc:ae0f6d73c46634a078fd0ac1d196dac5e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute <a class="el" href="classpcl_1_1people_1_1_h_o_g.html" title="HOG represents a class for computing the HOG descriptor described in Dalal, N. and Triggs,...">HOG</a> descriptor.  <a href="classpcl_1_1people_1_1_h_o_g.html#ae0f6d73c46634a078fd0ac1d196dac5e">更多...</a><br /></td></tr>
<tr class="separator:ae0f6d73c46634a078fd0ac1d196dac5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d9ba661e57224491bbd474cf95aa495"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#a3d9ba661e57224491bbd474cf95aa495">compute</a> (float *I, float *descriptor) const</td></tr>
<tr class="memdesc:a3d9ba661e57224491bbd474cf95aa495"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute <a class="el" href="classpcl_1_1people_1_1_h_o_g.html" title="HOG represents a class for computing the HOG descriptor described in Dalal, N. and Triggs,...">HOG</a> descriptor with default parameters.  <a href="classpcl_1_1people_1_1_h_o_g.html#a3d9ba661e57224491bbd474cf95aa495">更多...</a><br /></td></tr>
<tr class="separator:a3d9ba661e57224491bbd474cf95aa495"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:afff8b80c79c365df8c7ec4d8bdf21a8e"><td class="memItemLeft" align="right" valign="top"><a id="afff8b80c79c365df8c7ec4d8bdf21a8e"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#afff8b80c79c365df8c7ec4d8bdf21a8e">h_</a></td></tr>
<tr class="memdesc:afff8b80c79c365df8c7ec4d8bdf21a8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">image height (default = 128) <br /></td></tr>
<tr class="separator:afff8b80c79c365df8c7ec4d8bdf21a8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c14fbec33e2b1acdc080e5d21221cc6"><td class="memItemLeft" align="right" valign="top"><a id="a2c14fbec33e2b1acdc080e5d21221cc6"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#a2c14fbec33e2b1acdc080e5d21221cc6">w_</a></td></tr>
<tr class="memdesc:a2c14fbec33e2b1acdc080e5d21221cc6"><td class="mdescLeft">&#160;</td><td class="mdescRight">image width (default = 64) <br /></td></tr>
<tr class="separator:a2c14fbec33e2b1acdc080e5d21221cc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a506a4a0ecba28321471236bcbe40d538"><td class="memItemLeft" align="right" valign="top"><a id="a506a4a0ecba28321471236bcbe40d538"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#a506a4a0ecba28321471236bcbe40d538">n_channels_</a></td></tr>
<tr class="memdesc:a506a4a0ecba28321471236bcbe40d538"><td class="mdescLeft">&#160;</td><td class="mdescRight">image number of channels (default = 3) <br /></td></tr>
<tr class="separator:a506a4a0ecba28321471236bcbe40d538"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a196958c0424bafdc837e8eac2fc902ba"><td class="memItemLeft" align="right" valign="top"><a id="a196958c0424bafdc837e8eac2fc902ba"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#a196958c0424bafdc837e8eac2fc902ba">bin_size_</a></td></tr>
<tr class="memdesc:a196958c0424bafdc837e8eac2fc902ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">spatial bin size (default = 8) <br /></td></tr>
<tr class="separator:a196958c0424bafdc837e8eac2fc902ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2353ce44ccfa5c5f3e6e6af9956a49f5"><td class="memItemLeft" align="right" valign="top"><a id="a2353ce44ccfa5c5f3e6e6af9956a49f5"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#a2353ce44ccfa5c5f3e6e6af9956a49f5">n_orients_</a></td></tr>
<tr class="memdesc:a2353ce44ccfa5c5f3e6e6af9956a49f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">number of orientation bins (default = 9) <br /></td></tr>
<tr class="separator:a2353ce44ccfa5c5f3e6e6af9956a49f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad843ce3dfa59da14e6590c7d29a694d6"><td class="memItemLeft" align="right" valign="top"><a id="ad843ce3dfa59da14e6590c7d29a694d6"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#ad843ce3dfa59da14e6590c7d29a694d6">soft_bin_</a></td></tr>
<tr class="memdesc:ad843ce3dfa59da14e6590c7d29a694d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">if true, each pixel can contribute to multiple spatial bins (using bilinear interpolation) (default = true) <br /></td></tr>
<tr class="separator:ad843ce3dfa59da14e6590c7d29a694d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4530d2cc7ca324ed6c6232c830b89488"><td class="memItemLeft" align="right" valign="top"><a id="a4530d2cc7ca324ed6c6232c830b89488"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#a4530d2cc7ca324ed6c6232c830b89488">clip_</a></td></tr>
<tr class="memdesc:a4530d2cc7ca324ed6c6232c830b89488"><td class="mdescLeft">&#160;</td><td class="mdescRight">value at which to clip histogram bins (default = 0.2) <br /></td></tr>
<tr class="separator:a4530d2cc7ca324ed6c6232c830b89488"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:ac6197755a499fc00fc9f03bc2231c768"><td class="memItemLeft" align="right" valign="top"><a id="ac6197755a499fc00fc9f03bc2231c768"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#ac6197755a499fc00fc9f03bc2231c768">grad1</a> (float *I, float *Gx, float *Gy, int h, int w, int x) const</td></tr>
<tr class="memdesc:ac6197755a499fc00fc9f03bc2231c768"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute x and y gradients for just one column (uses sse). <br /></td></tr>
<tr class="separator:ac6197755a499fc00fc9f03bc2231c768"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af98b122a2f21e15d930375625138a648"><td class="memItemLeft" align="right" valign="top"><a id="af98b122a2f21e15d930375625138a648"></a>
float *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#af98b122a2f21e15d930375625138a648">acosTable</a> () const</td></tr>
<tr class="memdesc:af98b122a2f21e15d930375625138a648"><td class="mdescLeft">&#160;</td><td class="mdescRight">Build lookup table a[] s.t. a[dx/2.02*n]~=acos(dx). <br /></td></tr>
<tr class="separator:af98b122a2f21e15d930375625138a648"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a115cd683d7ec725ef850235956f4f464"><td class="memItemLeft" align="right" valign="top"><a id="a115cd683d7ec725ef850235956f4f464"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#a115cd683d7ec725ef850235956f4f464">gradQuantize</a> (float *O, float *M, int *O0, int *O1, float *M0, float *M1, int n_orients, int nb, int n, float norm) const</td></tr>
<tr class="memdesc:a115cd683d7ec725ef850235956f4f464"><td class="mdescLeft">&#160;</td><td class="mdescRight">Helper for gradHist, quantize O and M into O0, O1 and M0, M1 (uses sse). <br /></td></tr>
<tr class="separator:a115cd683d7ec725ef850235956f4f464"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a189847b4ea9f5c9a22332d5d0603ad13"><td class="memItemLeft" align="right" valign="top"><a id="a189847b4ea9f5c9a22332d5d0603ad13"></a>
void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#a189847b4ea9f5c9a22332d5d0603ad13">alMalloc</a> (size_t size, int alignment) const</td></tr>
<tr class="memdesc:a189847b4ea9f5c9a22332d5d0603ad13"><td class="mdescLeft">&#160;</td><td class="mdescRight">Platform independent aligned memory allocation (see also alFree). <br /></td></tr>
<tr class="separator:a189847b4ea9f5c9a22332d5d0603ad13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84107eed96d4c86e8c746b9142ae626e"><td class="memItemLeft" align="right" valign="top"><a id="a84107eed96d4c86e8c746b9142ae626e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html#a84107eed96d4c86e8c746b9142ae626e">alFree</a> (void *aligned) const</td></tr>
<tr class="memdesc:a84107eed96d4c86e8c746b9142ae626e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Platform independent aligned memory de-allocation (see also alMalloc). <br /></td></tr>
<tr class="separator:a84107eed96d4c86e8c746b9142ae626e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p><b><a class="el" href="classpcl_1_1people_1_1_h_o_g.html" title="HOG represents a class for computing the HOG descriptor described in Dalal, N. and Triggs,...">HOG</a></b> represents a class for computing the <a class="el" href="classpcl_1_1people_1_1_h_o_g.html" title="HOG represents a class for computing the HOG descriptor described in Dalal, N. and Triggs,...">HOG</a> descriptor described in Dalal, N. and Triggs, B., "Histograms of oriented gradients for human detection", CVPR 2005. </p>
<dl class="section author"><dt>作者</dt><dd>Matteo Munaro, Stefano Ghidoni, Stefano Michieletto </dd></dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a3d9ba661e57224491bbd474cf95aa495"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d9ba661e57224491bbd474cf95aa495">&#9670;&nbsp;</a></span>compute() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::people::HOG::compute </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>I</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>descriptor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Compute <a class="el" href="classpcl_1_1people_1_1_h_o_g.html" title="HOG represents a class for computing the HOG descriptor described in Dalal, N. and Triggs,...">HOG</a> descriptor with default parameters. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">I</td><td>Image as array of float between 0 and 1. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">descriptor</td><td><a class="el" href="classpcl_1_1people_1_1_h_o_g.html" title="HOG represents a class for computing the HOG descriptor described in Dalal, N. and Triggs,...">HOG</a> descriptor. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ae0f6d73c46634a078fd0ac1d196dac5e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0f6d73c46634a078fd0ac1d196dac5e">&#9670;&nbsp;</a></span>compute() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::people::HOG::compute </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>I</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n_channels</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>bin_size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n_orients</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>soft_bin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>descriptor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Compute <a class="el" href="classpcl_1_1people_1_1_h_o_g.html" title="HOG represents a class for computing the HOG descriptor described in Dalal, N. and Triggs,...">HOG</a> descriptor. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">I</td><td>Image as array of float between 0 and 1. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">h</td><td>Image height. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">w</td><td>Image width. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">n_channels</td><td>Image number of channels. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">bin_size</td><td>Spatial bin size. <br  />
 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">n_orients</td><td>Number of orientation bins. <br  />
 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">soft_bin</td><td>If true, each pixel can contribute to multiple spatial bins (using bilinear interpolation). </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">descriptor</td><td><a class="el" href="classpcl_1_1people_1_1_h_o_g.html" title="HOG represents a class for computing the HOG descriptor described in Dalal, N. and Triggs,...">HOG</a> descriptor. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aab8c16acabf7b17ff3606fb2dce0df7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab8c16acabf7b17ff3606fb2dce0df7f">&#9670;&nbsp;</a></span>gradHist()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::people::HOG::gradHist </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>M</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>O</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>bin_size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n_orients</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>soft_bin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>H</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Compute n_orients gradient histograms per bin_size x bin_size block of pixels. <br  />
 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">M</td><td>Gradient magnitude for each image point. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">O</td><td>Gradient orientation for each image point. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">h</td><td>Image height. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">w</td><td>Image width. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">bin_size</td><td>Spatial bin size. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">n_orients</td><td>Number of orientation bins. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">soft_bin</td><td>If true, each pixel can contribute to multiple spatial bins (using bilinear interpolation). </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">H</td><td>Gradient histograms. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a25cc756be0f72a274d5c79aa8a40841f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25cc756be0f72a274d5c79aa8a40841f">&#9670;&nbsp;</a></span>gradMag()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::people::HOG::gradMag </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>I</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>M</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>O</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Compute gradient magnitude and orientation at each location (uses sse). </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">I</td><td>Image as array of float. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">h</td><td>Image height. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">w</td><td>Image width. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">d</td><td>Image number of channels. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">M</td><td>Gradient magnitude for each image point. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">O</td><td>Gradient orientation for each image point. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a731373544464f630fdd84c0f22902334"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a731373544464f630fdd84c0f22902334">&#9670;&nbsp;</a></span>normalization()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::people::HOG::normalization </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>H</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>bin_size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n_orients</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>clip</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>G</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Normalize histogram of gradients. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">H</td><td>Gradient histograms. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">h</td><td>Image height. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">w</td><td>Image width. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">bin_size</td><td>Spatial bin size. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">n_orients</td><td>Number of orientation bins. <br  />
 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">clip</td><td>Value at which to clip histogram bins. <br  />
 </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">G</td><td>Normalized gradient histograms. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>people/include/pcl/people/<a class="el" href="hog_8h_source.html">hog.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>people</b></li><li class="navelem"><a class="el" href="classpcl_1_1people_1_1_h_o_g.html">HOG</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
